package hcn.cmc.bean.response;


import hcn.protocol.base.hisPlateform.MsgHeaderRequest;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlRootElement(name = "BSXml")
@XmlAccessorType(XmlAccessType.FIELD)
public class MeridianListXmlResp {
    private MsgHeaderRequest MsgHeader;
    private MeridianListXmlResp.MsgBody MsgBody;


    public MsgHeaderRequest getMsgHeader() {
        return MsgHeader;
    }

    public void setMsgHeader(MsgHeaderRequest msgHeader) {
        MsgHeader = msgHeader;
    }

    public MeridianListXmlResp.MsgBody getMsgBody() {
        return MsgBody;
    }

    public void setMsgBody(MeridianListXmlResp.MsgBody msgBody) {
        MsgBody = msgBody;
    }

    @XmlRootElement(name = "MsgBody")
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class MsgBody{
        private String Status;
        private String Code;
        private String Detail;
        private Data Data;

        public MsgBody() { }

        public String getStatus() {
            return this.Status;
        }

        public void setStatus(String status) {
            this.Status = status;
        }

        public String getCode() {
            return this.Code;
        }

        public void setCode(String code) {
            this.Code = code;
        }


        public String getDetail() {
            return this.Detail;
        }

        public void setDetail(String detail) {
            this.Detail = detail;
        }

        @XmlElement(name = "Data")
        public MsgBody.Data getData() {
            return this.Data;
        }

        public void setData(MsgBody.Data data) {
            this.Data = data;
        }


        @XmlRootElement(name = "Data")
        @XmlAccessorType(XmlAccessType.FIELD)
        public static class Data{

            @XmlElementWrapper(name = "MeridianLists")
            @XmlElement(name = "MeridianList")
            public List<MeridianList> MeridianLists;

            public List<MeridianList> getMeridianLists() {
                return MeridianLists;
            }

            public void setMeridianLists(List<MeridianList> meridianLists) {
                MeridianLists = meridianLists;
            }

            @XmlAccessorType(XmlAccessType.FIELD)
            public static class MeridianList{

                private String MeridianId;
                private String MeridianName;
                private String PyCode;
                @XmlElementWrapper(name = "AcupointLists")
                @XmlElement(name = "AcupointList")
                private List<AcupointList> AcupointLists;

                public String getMeridianId() {
                    return MeridianId;
                }

                public void setMeridianId(String meridianId) {
                    MeridianId = meridianId;
                }

                public String getMeridianName() {
                    return MeridianName;
                }

                public void setMeridianName(String meridianName) {
                    MeridianName = meridianName;
                }

                public String getPyCode() {
                    return PyCode;
                }

                public void setPyCode(String pyCode) {
                    PyCode = pyCode;
                }

                public List<AcupointList> getAcupointLists() {
                    return AcupointLists;
                }

                public void setAcupointLists(List<AcupointList> acupointLists) {
                    AcupointLists = acupointLists;
                }

                @XmlAccessorType(XmlAccessType.FIELD)
                public static class AcupointList{
                    private String AcupointId;
                    private String AcupointName;

                    public String getAcupointId() {
                        return AcupointId;
                    }

                    public void setAcupointId(String acupointId) {
                        AcupointId = acupointId;
                    }

                    public String getAcupointName() {
                        return AcupointName;
                    }

                    public void setAcupointName(String acupointName) {
                        AcupointName = acupointName;
                    }
                }
            }
        }

    }
}

